package org.dromara.wx.domain.bo;

import org.dromara.wx.domain.WxUserRole;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 用户和角色关联业务对象 wx_user_role
 *
 * @author yf
 * @date 2024-06-05
 */
@Data
@AutoMapper(target = WxUserRole.class, reverseConvertGenerate = false)
public class WxUserRoleBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增编号
     */
    @NotNull(message = "自增编号不能为空", groups = {EditGroup.class})
    private Integer userRoleId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer userId;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer roleId;

}
